import request from '@/utils/request'

// 查询指标权重表列表
export function listWeight(query) {
  return request({
    url: '/eval/weight/list',
    method: 'get',
    params: query
  })
}

// 查询指标权重表详细
export function getWeight(id) {
  return request({
    url: '/eval/weight/' + id,
    method: 'get'
  })
}

// 新增指标权重表
export function addWeight(data) {
  return request({
    url: '/eval/weight',
    method: 'post',
    data: data
  })
}

// 修改指标权重表
export function updateWeight(data) {
  return request({
    url: '/eval/weight',
    method: 'put',
    data: data
  })
}

// 删除指标权重表
export function delWeight(id) {
  return request({
    url: '/eval/weight/' + id,
    method: 'delete'
  })
}
